<!doctype html>
<html>

	<head>
		<meta charset="UTF-8">
		<title>模拟生产</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<meta name="apple-mobile-web-app-capable" content="yes">
		<meta name="apple-mobile-web-app-status-bar-style" content="black">
		<link href="../../dep/mui/css/mui.css" rel="stylesheet" />
		<link href="../../css/style.css" rel="stylesheet" />
		<link rel="stylesheet" href="../../css/page/simulate/simulate.css" />
	</head>

	<body>
		<header id="header" class="mui-bar mui-bar-nav header-lay">
			<h1 class="mui-title">模拟生产</h1>
			<button id="back" class="mui-action-back mui-btn mui-btn-blue mui-btn-link mui-btn-nav mui-pull-left" style="">
		    	<span class="mui-icon mui-icon-left-nav"></span>返回</button>
		</header>
		<div class="mui-content" id="mui-content">
			<ul class="mui-table-view choice-production" id="choice-production">
				<li class="select-production mui-table-view-cell">
					<a href="../chioceProduct/chckboxProduct.html?isBom=true" class="mui-navigate-right">选择需生产的成品</a>
				</li>
			</ul>

			<ul id="goodsList" class="mui-table-view">

			</ul>

			<script id="bindGoodsList" type="text/html">

				{{each items}}
				<li class="mui-table-view-cell mui-media">
					<a id="link_{{$value.id}}" data-id="{{$value.goodsId}}">
						{{ if $value.infoGoodsImg && $value.infoGoodsImg.length>0}}
						<img class="mui-media-object mui-pull-left" src="{{$value.infoGoodsImg[0].imgLink}}"> {{ else }}
						<img class="mui-media-object mui-pull-left" src="../../img/chioceProduct/product-icon.png"> {{/if}}

						<div class="mui-media-body">
							<p class="pro pro-code">{{$value.goodsSerial}}</p>
							<p class="pro pro-name"><span>{{$value.goodsName}}</span>-<span>{{$value.specValue}}</span></p>
							<p class="pro-number">可生产套数：<span id="number_{{$value.id}}">{{$value.productionNumber}}</span></p>
						</div>
					</a>
				</li>

				{{/each}}

			</script>

		</div>
		<div class="mui-button-row">
			<button id="start" type="button" class="mui-btn mui-btn-warning mui-btn btn-color1">开始分析</button>
		</div>
	</body>

</html>
<script src="../../dep/seajs/3.0.0/sea.js"></script>
<script src="../../js/seajs_config.js"></script>
<script>
	seajs.use("../../js/simulateProduction/simulateProduction")
</script>